﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Limpio.Master" Inherits="System.Web.Mvc.ViewPage<FONCREAGROINTEGRAL.Models.DERECHOHABIENTE>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm("Edit", "derechohabiente", FormMethod.Post, new { id = "derechohabiente", enctype = "multipart/form-data" }))
       {%>
        <%: Html.ValidationSummary(true)%>
            <div class="divLC"> 
            <div class="divLabel2">
                Vinculo
            </div>
            <div class="divcampo2">
                <%: Html.DropDownList("IdVinculo")%>
                <%: Html.ValidationMessageFor(model => model.IdVinculo)%>
            </div>
            </div>
            
            <div class="divLC"> 
            <div class="divLabel2">
                Paterno
            </div>
            <div class="divcampo2">
                <%: Html.TextBoxFor(model => model.ApePaterno)%>
                <%: Html.ValidationMessageFor(model => model.ApePaterno)%>
            </div>

            <div class="divLabel2">
                Materno
            </div>
            <div class="divcampo2">
                <%: Html.TextBoxFor(model => model.ApeMaterno)%>
                <%: Html.ValidationMessageFor(model => model.ApeMaterno)%>
            </div>
            </div>
            
            <div class="divLC"> 
            <div class="divLabel2">
                Nombres
            </div>
            <div class="divcampo2">
                <%: Html.TextBoxFor(model => model.Nombre)%>
                <%: Html.ValidationMessageFor(model => model.Nombre)%>
            </div>
 
            <div class="divLabel2">
                Fec. Nacimiento
            </div>
            <div class="divcampo2" id ="divFechaNacimiento">
                <%: Html.ValidationMessageFor(model => model.FechaNacimiento)%>
            </div>
            </div>

            <div class="divLC"> 
            <div class="divLabel2">
                Estado Civil
            </div>
            <div class="divcampo2">
                <%: Html.DropDownList("EstadoCivil")%>
                <%: Html.ValidationMessageFor(model => model.EstadoCivil)%>
            </div>
            </div>
            
            <div class="divLC"> 
            <div class="divLabel2">
                <%: Html.LabelFor(model => model.Discapacidad)%>
            </div>
            <div class="divcampo2">
                <%: Html.DropDownList("Discapacidad")%>
                <%: Html.ValidationMessageFor(model => model.Discapacidad)%>
            </div>

            <div class="divLabel2">
                <%: Html.LabelFor(model => model.Estudiando)%>
            </div>
            <div class="divcampo2">
                <%: Html.DropDownList("Estudiando")%>
                <%: Html.ValidationMessageFor(model => model.Estudiando)%>
            </div>
            </div>
            
            <div class="divLC"> 
            <div class="divLabel2">
                <%: Html.LabelFor(model => model.Estado)%>
            </div>
            <div class="divcampo2">
                <%: Html.DropDownList("Estado")%>
                <%: Html.ValidationMessageFor(model => model.Estado)%>
            </div>
            </div>
            
            <div class="divLC"> 
            <div class="divLabel2">
                Fec. Convivencia
            </div>
            <div class="divcampo2" id="divFechaConvivencia">
                <%: Html.ValidationMessageFor(model => model.FechaConvivencia)%>
            </div>
            </div>
            
            <div class="divLC"> 
            <div class="divLabel2">
                Nacionalidad
            </div>
            <div class="divcampo2">
                <%: Html.DropDownList("IdNacionalidad")%>
                <%: Html.ValidationMessageFor(model => model.IdNacionalidad)%>
            </div>
            </div>

            <div class="divLC">

            <div class="divLabel2">
                Tipo Doc Ident
            </div>
            <div class="divcampo2">
                <%: Html.DropDownList("IdTipoDI")%>
                <%: Html.ValidationMessageFor(model => model.NroDI)%>
            </div>

            <div class="divLabel2">
                Numero D.I
            </div>
            <div class="divcampo2">
                <%: Html.TextBoxFor(model => model.NroDI, new { maxlength = 12 })%>
                <%: Html.ValidationMessageFor(model => model.NroDI)%>
            </div>
            </div>

            <div class="divLC"> 
            <div class="divLabel2">
                Doc Vinculo Fam
            </div>
            <div class="divcampo2" id="dividacreditavinculofamiliar">
                <%: Html.DropDownList("idacreditavinculofamiliar")%>
                <%: Html.ValidationMessageFor(model => model.idacreditavinculofamiliar)%>
            </div>

            <div class="divLabel2">
                Numero D. F
            </div>
            <div class="divcampo2">
                <%: Html.TextBoxFor(model => model.nrodocumento)%>
                <%: Html.ValidationMessageFor(model => model.nrodocumento)%>
            </div>
            </div>

            <div class="divLC">
            <div class="divLabel2">
                Adjunto
            </div>
            <div class="divLabel2">
            <input type="file" id="adjunto" name ="adjunto"/>
            </div>
            </div>
            
            <hr />
            <p>
                <input type="submit" value="Guardar" id="bsubmit" />
            </p>

    <% } %>



</asp:Content>

